package com.cn.wanxi.util;

public class Tool {
    public static Integer stringToInt(Object value) {
//        int a = 0;
        try {
            return Integer.parseInt(value.toString());
        } catch (Exception e) {
//            e.printStackTrace();
        }
        return 0;
    }

    public static Float stringToFloat(Object value) {
//        int a = 0;
        try {
            return Float.parseFloat(value.toString());
        } catch (Exception e) {
//            e.printStackTrace();
        }
        return 0.0f;
    }
}
